$(() => {
    $('#navbar').children().removeClass('active');
    $('#navbar').children('#navbar-1').addClass('active');
});

function delEntity(element) {
    let id = $(element).attr("id");
    let currentTr = $(element);
    $.ajax({
        url: '/thesisPublishType/rm',
        method: 'post',
        data: {
            id: id
        },
        success: function (res) {
            if (res.code == 0) {
                currentTr.parent().parent().remove();
            } else {
                console.log(res);
            }
        },
        error: function (err) {
            console.log(err);
        }
    })
}